package com.king.run.activity.other;

import android.os.Bundle;
import android.widget.TextView;

import com.king.run.R;
import com.king.run.base.BaseActivity;
import com.zkk.view.rulerview.RulerView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

/**
 * 作者：shuizi_wade on 2017/8/18 09:41
 * 邮箱：674618016@qq.com
 */
@ContentView(R.layout.activity_complete_weight)
public class CompleteWeightActivity extends BaseActivity {
    @ViewInject(R.id.ruler_weight)
    RulerView ruler_weight;
    @ViewInject(R.id.tv_weight_num)
    TextView tv_weight_num;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ruler_weight.setOnValueChangeListener(new RulerView.OnValueChangeListener() {
            @Override
            public void onValueChange(float value) {
                tv_weight_num.setText(value + "");
            }
        });
        ruler_weight.setValue(55, 20, 200, 0.1f);
    }
}
